﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CRM.MODEL.Ali
{


    #region 存储过程 Pro_GetAli_Supplier 的相关参数
    /// <summary>
    /// Pro_GetAli_Supplier 的相关参数
    ///Ali_Supplier
    ///xialei
    /// </summary>
    [Serializable]
    public struct GetAli_Supplier
    {
        //参数定义	 		     
        public const string IDPARM = "@ID";
        public const string PIDPARM = "@PID";
        public const string LOGINACCOUNTPARM = "@LoginAccount";
        public const string PASSWORDPARM = "@PassWord";
        public const string SUPPLIERNAMEPARM = "@SupplierName";
        public const string SUPPLIERLEVELPARM = "@SupplierLevel";
        public const string SUPPLIERCONTACTNAMEPARM = "@SupplierContactName";
        public const string SUPPLIERPHONEPARM = "@SupplierPhone";
        public const string SUPPLIERADDRESSPARM = "@SupplierAddress";
        public const string REMARKPARM = "@Remark";
        public const string ISACTIVEPARM = "@IsActive";
        public const string CREATEBYPARM = "@CreateBy";
        public const string CREATETIMEPARM = "@CreateTime";
        public const string LASTUPDATEBYPARM = "@LastUpdateBy";
        public const string LASTUPDATETIMEPARM = "@LastUpdateTime";
        //分页参数定义  
        public const string ORDERSTRING_PARM = "@OrderString";
        public const string PAGESIZE_PARM = "@PageSize";
        public const string CURRENTPAGEINDEX_PARM = "@CurrentPageIndex";
        public const string TOTALITEMS_PARM = "@TotalItems";


        public const string KEYVALUE_PARM = "@KeyValue";

        //字段属性设置
        private object ID;
        public object IDVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ID); }
            set
            { this.ID = value; }
        }
        private object PID;
        public object PIDVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.PID); }
            set
            { this.PID = value; }
        }
        private object LoginAccount;
        public object LOGINACCOUNTVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LoginAccount); }
            set
            { this.LoginAccount = value; }
        }
        private object PassWord;
        public object PASSWORDVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.PassWord); }
            set
            { this.PassWord = value; }
        }

        private object SupplierName;
        public object SUPPLIERNAMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierName); }
            set
            { this.SupplierName = value; }
        }

        private object SupplierLevel;
        public object SUPPLIERLEVELVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierLevel); }
            set
            { this.SupplierLevel = value; }
        }

        private object SupplierContactName;
        public object SUPPLIERCONTACTNAMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierContactName); }
            set
            { this.SupplierContactName = value; }
        }

        private object SupplierPhone;
        public object SUPPLIERPHONEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierPhone); }
            set
            { this.SupplierPhone = value; }
        }

        private object SupplierAddress;
        public object SUPPLIERADDRESSVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierAddress); }
            set
            { this.SupplierAddress = value; }
        }

        private object Remark;
        public object REMARKVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Remark); }
            set
            { this.Remark = value; }
        }

        private object IsActive;
        public object ISACTIVEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.IsActive); }
            set
            { this.IsActive = value; }
        }

        private object CreateBy;
        public object CREATEBYVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateBy); }
            set
            { this.CreateBy = value; }
        }

        private object CreateTime;
        public object CREATETIMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateTime); }
            set
            { this.CreateTime = value; }
        }

        private object LastUpdateBy;
        public object LASTUPDATEBYVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastUpdateBy); }
            set
            { this.LastUpdateBy = value; }
        }

        private object LastUpdateTime;
        public object LASTUPDATETIMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastUpdateTime); }
            set
            { this.LastUpdateTime = value; }
        }


        //分页属性设置
        private object OrderString;
        public object ORDERSTRING_VALUE
        {
            get { return CRM.UTIL.Common.TransQuote(this.OrderString); }
            set { this.OrderString = value; }
        }

        private object PageSize;
        public object PAGESIZE_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.PageSize, CRM.UTIL.Common.DefaultPageSize); }
            set { this.PageSize = value; }
        }

        private object CurrentPageIndex;
        public object CURRENTPAGEINDEX_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.CurrentPageIndex, CRM.UTIL.Common.DefaultCurrentPageIndex); }
            set { this.CurrentPageIndex = value; }
        }

        private object TotalItems;
        public object TOTALITEMS_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.TotalItems); }
            set { this.TotalItems = value; }
        }

        private object KeyValue;
        public object KEYVALUE_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.KeyValue); }
            set { this.KeyValue = value; }
        }

    }
    #endregion

    #region 存储过程 Pro_EditAli_Supplier 的相关参数
    /// <summary>
    /// Pro_EditAli_Supplier 的相关参数
    ///Ali_Supplier
    ///xialei
    /// </summary>
    [Serializable]
    public struct EditAli_Supplier
    {
        //动作参数
        public const string ACTION_PARM = "@Action";
        //错误信息参数
        public const string ERRMSG_PARM = "@errMsg";

        public const string OUTID_PARM = "@OutID";
        ////表字段参数
        public const string IDPARM = "@ID";
        public const string PIDPARM = "@PID";
        public const string LOGINACCOUNTPARM = "@LoginAccount";
        public const string PASSWORDPARM = "@PassWord";
        public const string SUPPLIERNAMEPARM = "@SupplierName";
        public const string SUPPLIERLEVELPARM = "@SupplierLevel";
        public const string SUPPLIERCONTACTNAMEPARM = "@SupplierContactName";
        public const string SUPPLIERPHONEPARM = "@SupplierPhone";
        public const string SUPPLIERADDRESSPARM = "@SupplierAddress";
        public const string REMARKPARM = "@Remark";
        public const string ISACTIVEPARM = "@IsActive";
        public const string CREATEBYPARM = "@CreateBy";
        public const string CREATETIMEPARM = "@CreateTime";
        public const string LASTUPDATEBYPARM = "@LastUpdateBy";
        public const string LASTUPDATETIMEPARM = "@LastUpdateTime";


        //动作属性
        private object Action;
        public object ACTION_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Action); }
            set
            { this.Action = value; }
        }

        //错误信息属性
        private object errMsg;
        public object ERRMSG_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.errMsg); }
            set
            { this.errMsg = value; }
        }

        private object OutID;
        public object OUTID_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.OutID); }
            set { this.OutID = value; }
        }

        //表字段属性
        private object ID;
        public object ID_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ID); }
            set
            { this.ID = value; }
        }
        private object PID;
        public object PID_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.PID); }
            set
            { this.PID = value; }
        }
        private object LoginAccount;
        public object LOGINACCOUNT_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LoginAccount); }
            set
            { this.LoginAccount = value; }
        }
        private object PassWord;
        public object PASSWORD_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.PassWord); }
            set
            { this.PassWord = value; }
        }

        private object SupplierName;
        public object SUPPLIERNAME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierName); }
            set
            { this.SupplierName = value; }
        }

        private object SupplierLevel;
        public object SUPPLIERLEVEL_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierLevel); }
            set
            { this.SupplierLevel = value; }
        }

        private object SupplierContactName;
        public object SUPPLIERCONTACTNAME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierContactName); }
            set
            { this.SupplierContactName = value; }
        }

        private object SupplierPhone;
        public object SUPPLIERPHONE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierPhone); }
            set
            { this.SupplierPhone = value; }
        }

        private object SupplierAddress;
        public object SUPPLIERADDRESS_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.SupplierAddress); }
            set
            { this.SupplierAddress = value; }
        }

        private object Remark;
        public object REMARK_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Remark); }
            set
            { this.Remark = value; }
        }

        private object IsActive;
        public object ISACTIVE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.IsActive); }
            set
            { this.IsActive = value; }
        }

        private object CreateBy;
        public object CREATEBY_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateBy); }
            set
            { this.CreateBy = value; }
        }

        private object CreateTime;
        public object CREATETIME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateTime); }
            set
            { this.CreateTime = value; }
        }

        private object LastUpdateBy;
        public object LASTUPDATEBY_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastUpdateBy); }
            set
            { this.LastUpdateBy = value; }
        }

        private object LastUpdateTime;
        public object LASTUPDATETIME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastUpdateTime); }
            set
            { this.LastUpdateTime = value; }
        }

    }
    #endregion
}
